package net.sxnic.jhitem.itemclassify;

import net.sxinfo.core.entity.AbstractEntity;
import javax.persistence.*;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "jh_item_classify")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ItemClassify extends AbstractEntity {
	
	private static final long serialVersionUID = 1L;
	

	//columns START
	// 年度
	@Column(length=20)
	private String cyear;
	// 类别编码
	@Column(length=20)
	private String sortCode;
	// 类别名称
	@Column(length=20)
	private String sortName;
	// 信息编码
	@Column(length=20)
	private String infoCode;
	// 信息内容
	@Column(length=20)
	private String infoName;
	// 信息排序
	private int infoIndex;
	//columns END

	
	public ItemClassify()
	{
		super();
	}
	
	public String getCyear() {
		return this.cyear;
	}
	
	public void setCyear(String value) {
		this.cyear = value;
	}
	
	public String getSortCode() {
		return this.sortCode;
	}
	
	public void setSortCode(String value) {
		this.sortCode = value;
	}
	
	public String getSortName() {
		return this.sortName;
	}
	
	public void setSortName(String value) {
		this.sortName = value;
	}
	
	public String getInfoCode() {
		return this.infoCode;
	}
	
	public void setInfoCode(String value) {
		this.infoCode = value;
	}
	
	public String getInfoName() {
		return this.infoName;
	}
	
	public void setInfoName(String value) {
		this.infoName = value;
	}
	
	public int getInfoIndex() {
		return this.infoIndex;
	}
	
	public void setInfoIndex(int value) {
		this.infoIndex = value;
	}
	
}

